 <script th:inline="javascript">
/*<![CDATA[*/

    function del(event,element){
    	event.preventDefault();
      	bootbox.confirm("您确定删除吗?", function(result) {
    	if(result){
    		var _id = $(element).attr("href");
    		//这里修改了下，要传入的父页面的容器id
    		BOSS.remoteCall('creditGoods/delete',$('#creditGoods_grid'),{id:_id});
    		}
    	}); 
    }
	
/*]]>*/
</script>
<table class="table table-striped table-bordered  table-advance table-hover" id="creditGoods_table">
	<thead>
		<tr>
			<th>商品名称</th>
			<th>积分值</th>
			<th>现金</th>
			<th>是否可兑换</th>
			<th>是否热销</th>
			<th>操作</th>
		</tr>
	</thead>	
	<tbody>
		<tr class="odd gradeX" th:each="data : ${creditGoodsList}">
			<td th:text="${data.goods.name}">
				 
			</td>
			<td th:text="${data.credit}">
				 
			</td>
			<td th:text="${data.money}">
				 
			</td>
			<td th:text="${data.isExchange}">
				 
			</td>
			<td th:text="${data.isHot}">
				 
			</td>
			<td>
				 <a href="" th:href="@{'/creditGoods/edit/'+${data.id}}" th:attr="id=${'edit_link_'+dataStat.index}"  class="btn default btn-xs purple" ><i class="fa fa-edit"></i>编辑</a>|
				 <a href="#" th:href="${data.id}"  th:attr="id=${'delete_link_'+dataStat.index}" class="btn default btn-xs purple" onclick="del(event,this);"><i class="fa fa-minus"></i>移除</a>
			</td>		 
		</tr>
 	</tbody>
</table>